/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package air.eb;

/**
 *
 * @author mrxyz
 */
public class Flightinstance {
    private String nr;
    private double fare;
    private String depTime;
    private String arrTime;
    private String airline;
    private String depAirport;
    private String arrAirport;

    private String depDate;
    private String arrDate;
    private int availableSeats;

    public Flightinstance() {
    }

    public Flightinstance(String nr, double fare, String depTime, String arrTime, String airline, String depAirport, String arrAirport, String depDate, String arrDate, int availableSeats) {
        this.nr = nr;
        this.fare = fare;
        this.depTime = depTime;
        this.arrTime = arrTime;
        this.airline = airline;
        this.depAirport = depAirport;
        this.arrAirport = arrAirport;
        this.depDate = depDate;
        this.arrDate = arrDate;
        this.availableSeats = availableSeats;
    }

    public String getAirline() {
        return airline;
    }

    public void setAirline(String airline) {
        this.airline = airline;
    }

    public String getArrAirport() {
        return arrAirport;
    }

    public void setArrAirport(String arrAirport) {
        this.arrAirport = arrAirport;
    }

    public String getArrDate() {
        return arrDate;
    }

    public void setArrDate(String arrDate) {
        this.arrDate = arrDate;
    }

    public String getArrTime() {
        return arrTime;
    }

    public void setArrTime(String arrTime) {
        this.arrTime = arrTime;
    }

    public int getAvailableSeats() {
        return availableSeats;
    }

    public void setAvailableSeats(int availableSeats) {
        this.availableSeats = availableSeats;
    }

    public String getDepAirport() {
        return depAirport;
    }

    public void setDepAirport(String depAirport) {
        this.depAirport = depAirport;
    }

    public String getDepTime() {
        return depTime;
    }

    public void setDepTime(String depTime) {
        this.depTime = depTime;
    }

    public String getDepdate() {
        return depDate;
    }

    public void setDepdate(String depDate) {
        this.depDate = depDate;
    }

    public double getFare() {
        return fare;
    }

    public void setFare(double fare) {
        this.fare = fare;
    }

    public String getNr() {
        return nr;
    }

    public void setNr(String nr) {
        this.nr = nr;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Flightinstance other = (Flightinstance) obj;
        if ((this.nr == null) ? (other.nr != null) : !this.nr.equals(other.nr)) {
            return false;
        }
        if ((this.depDate == null) ? (other.depDate != null) : !this.depDate.equals(other.depDate)) {
            return false;
        }
        if ((this.arrDate == null) ? (other.arrDate != null) : !this.arrDate.equals(other.arrDate)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.nr != null ? this.nr.hashCode() : 0);
        hash = 97 * hash + (this.depDate != null ? this.depDate.hashCode() : 0);
        hash = 97 * hash + (this.arrDate != null ? this.arrDate.hashCode() : 0);
        return hash;
    }
}
